﻿using CourseManagerment.Common;
using System.Windows;

namespace CourseManagerment.ViewModel
{
    public class LoginModel : NotifyBase
    {
        private string _userName;
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName
        {
            get { return _userName; }
            set
            {
                _userName = value;
                this.DoNotify();//带通知的属性
            }
        }
        private string _password;
        /// <summary>
        /// 密码
        /// </summary>
        public string Password
        {
            get { return _password; }
            set
            {
                _password = value;
                this.DoNotify();//带通知的属性
            }
        }

        private string _validationCode;
        /// <summary>
        /// 验证码
        /// </summary>
        public string ValidationCode
        {
            get { return _validationCode; }
            set
            {
                _validationCode = value;
                this.DoNotify();//带通知的属性
            }
        }

        private Visibility _showProgres;
        /// <summary>
        /// 进度条显示状态
        /// </summary>
        public Visibility ShowProgress
        {
            get { return _showProgres; }
            set { _showProgres = value; this.DoNotify(); }
        }

        private string imagePath;

        public string ImagePath
        {
            get { return imagePath; }
            set { imagePath = value; this.DoNotify(); }
        }





    }
}
